﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="EmpSalaryField.aspx.cs" Inherits="EmployeesSalary_EmpSalaryField" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" 
            WebDataSetID="WMaster" DataMember="EmpSalaryField">
        </InfoLight:WebDataSource>
        <infolight:webnavigator id="WebNavigator1" runat="server" bindingobject="wgvMaster"
        width="100%" statusstrip="WebStatusStrip1" CssClass="NavigatorBar" 
        CtlHeight="25">
        <navcontrols>
                 <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/first_C.gif" MouseOverImageUrl="../image/uipics/first2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/first3_C.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/previous_C.gif" MouseOverImageUrl="../image/uipics/previous2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/previous3_C.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/next_C.gif" MouseOverImageUrl="../image/uipics/next2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/next3_C.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/last_C.gif" MouseOverImageUrl="../image/uipics/last2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/last3_C.gif" />
                <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/add3_C.gif" />
                <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/apply3_C.gif" />
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/abort3_C.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/query3_C.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print_C.gif" MouseOverImageUrl="../image/uipics/print2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/print3_C.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
            </navcontrols>
        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
    </infolight:webnavigator>
          <InfoLight:webgridview id="wgvMaster" runat="server"
            cellpadding="5" datasourceid="Master" forecolor="#333333" width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif" 
        ApplyIconUrl="../Image/UIPics/Apply.gif" 
        CancelIconUrl="../Image/UIPics/Cancel.gif" 
        MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" 
        MouseOverAddIconUrl="../Image/UIPics/Add2.gif" 
        MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" 
        MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif" 
        MouseOverOKIconUrl="../Image/UIPics/OK2.gif" 
        MouseOverQueryIconUrl="../Image/UIPics/Query2.gif" 
        OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" 
        HeaderStyleWrap="False" BackColor="White" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px">
            <PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                    ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                    MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                    ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
            <Columns>
<asp:TemplateField ShowHeader="False"><EditItemTemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update" __designer:wfdid="w3"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel" __designer:wfdid="w4"></asp:ImageButton>
</EditItemTemplate>
    <headerstyle wrap="False" />
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit" __designer:wfdid="w1"></asp:ImageButton>&nbsp;
</ItemTemplate>
</asp:TemplateField>
                <asp:BoundField DataField="EmpSalaryFieldId" HeaderText="编号" 
                    SortExpression="EmpSalaryFieldId" ReadOnly="True" />
                <asp:BoundField DataField="EmpSalaryFieldName" HeaderText="薪资字段名" 
                    SortExpression="EmpSalaryFieldName" ReadOnly="True" />
                <asp:BoundField DataField="EmpSalaryFieldRemark" 
                    HeaderText="薪资字段中文描述" SortExpression="EmpSalaryFieldRemark" 
                    ReadOnly="True" />
                <asp:TemplateField HeaderText="员工薪资项分类编号" SortExpression="EmpSalaryFieldTypeId">
                    <EditItemTemplate>
                        <InfoLight:WebDropDownList ID="ddlType" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsFieldType" 
                            DataTextField="EmpSalaryFieldTypeName" DataValueField="EmpSalaryFieldTypeId" 
                            DriverObject="" Filter="" FilterObject="" onlyshowselecttext="False" 
                            SelectedValue='<%# Bind("EmpSalaryFieldTypeId") %>'>
                        </InfoLight:WebDropDownList>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDropDownList ID="ddlType" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsFieldType" 
                            DataTextField="EmpSalaryFieldTypeName" DataValueField="EmpSalaryFieldTypeId" 
                            DriverObject="" Filter="" FilterObject="" onlyshowselecttext="False" 
                            SelectedValue='<%# Bind("EmpSalaryFieldTypeId") %>'>
                        </InfoLight:WebDropDownList>
                    </FooterTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="ddlType" runat="server" 
                            AutoInsertEmptyData="False" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("EmpSalaryFieldTypeId") %>' DataSourceID="wdsFieldType" 
                            DataTextField="EmpSalaryFieldTypeName" DataValueField="EmpSalaryFieldTypeId">
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
               
                <asp:TemplateField HeaderText="启用状态（列表）" SortExpression="EmpSalaryFieldShowList">
                    <EditItemTemplate>
                        <InfoLight:WebCheckBox ID="cbShowList" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowList") %>' KeyValues="" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebCheckBox ID="cbShowList" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowList") %>' KeyValues="" />
                    </FooterTemplate>
                    <ItemTemplate>
                        <InfoLight:WebCheckBox ID="cbShowList" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowList") %>' Enabled="False" KeyValues="" />
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="启用状态（明细）" SortExpression="EmpSalaryFieldShow">
                    <EditItemTemplate>
                        <InfoLight:WebCheckBox ID="cbShow" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowDetail") %>' KeyValues="" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebCheckBox ID="cbShow" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowDetail") %>' KeyValues="" />
                    </FooterTemplate>
                    <ItemTemplate>
                        <InfoLight:WebCheckBox ID="cbShow" runat="server" BindingType="Boolean" 
                            Checked='<%# Bind("EmpSalaryFieldShowDetail") %>' Enabled="False" KeyValues="" />
                    </ItemTemplate>
                </asp:TemplateField>
</Columns>

<RowStyle BackColor="#EFF3FB" HorizontalAlign="Center"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

              <addnewrowcontrols>
                  <InfoLight:AddNewRowControlItem ControlID="ddlType" ControlType="DropDownList" 
                      FieldName="EmpSalaryFieldTypeId" />
                  <InfoLight:AddNewRowControlItem ControlID="cbShow" ControlType="CheckBox" 
                      FieldName="EmpSalaryFieldShow" />
              </addnewrowcontrols>

<HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
</InfoLight:webgridview>
    <Infolight:WebDefault ID="wdEmpSalaryField" runat="server" DefaultActive="True" DataSourceID="Master" DataMember="EmpSalaryField" CarryOnActive="False" >
        <Fields>
            <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="EmpSalaryFieldId"></InfoLight:DefaultFieldItem>
        </Fields>
</Infolight:WebDefault>
<Infolight:WebValidate ID="wvEmpSalaryField" runat="server" DataSourceID="Master" DataMember="EmpSalaryField" ValidateActive="True" ValidateChar="" DuplicateCheck="False" DuplicateCheckMode="ByLocal" ValidateStyle="ShowLable" MultiLanguage="False" RowCss="" AltRowCss="" >
</Infolight:WebValidate>

    <InfoLight:WebDataSource ID="wdsFieldType" runat="server" SelectAlias="Usasdb" 
        SelectCommand="select EmpSalaryFieldType.EmpSalaryFieldTypeId,EmpSalaryFieldType.EmpSalaryFieldTypeName from EmpSalaryFieldType where EmpSalaryFieldTypeShow=1">
    </InfoLight:WebDataSource>
    
    
</asp:Content>

